From 0026c91c773c0d29b151b0be20b95a3fa2464071 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 9 Mar 2006 15:56:12 +0100 Subject: [PATCH] Explain disadvantages of building pciback as a module in Kconfig help. Fix a module-loading bug in pciback. From: Jan Beulich Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/Kconfig | 4 +++- linux-2.6-xen-sparse/drivers/xen/pciback/pci_stub.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/Kconfig b/linux-2.6-xen-sparse/drivers/xen/Kconfig index eaf774af55..5cc8484a2a 100644 --- a/linux-2.6-xen-sparse/drivers/xen/Kconfig +++ b/linux-2.6-xen-sparse/drivers/xen/Kconfig @@ -35,7 +35,9 @@ config XEN_PCIDEV_BACKEND default XEN_PRIVILEGED_GUEST help The PCI device backend driver allows the kernel to export arbitrary - PCI devices to other guests. + PCI devices to other guests. If you select this to be a module, you + will need to make sure no other driver has bound to the device(s) + you want to make visible to other guests. choice prompt "PCI Backend Mode" diff --git a/linux-2.6-xen-sparse/drivers/xen/pciback/pci_stub.c b/linux-2.6-xen-sparse/drivers/xen/pciback/pci_stub.c index 2e0b8a0110..f3c6f019e0 100644 --- a/linux-2.6-xen-sparse/drivers/xen/pciback/pci_stub.c +++ b/linux-2.6-xen-sparse/drivers/xen/pciback/pci_stub.c @@ -378,7 +378,7 @@ fs_initcall(pcistub_init); static int __init pciback_init(void) { -#ifndef MODULE +#ifdef MODULE int err; err = pcistub_init(); -- 2.30.2